package com.ycg.blog.service;

import com.ycg.blog.pojo.ArticleConfig;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author lenovo
* @description 针对表【blog_article_config(文章配置信息)】的数据库操作Service
* @createDate 2024-03-02 12:05:04
*/
public interface ArticleConfigService extends IService<ArticleConfig> {

    /**
     * 增加浏览量
     * @param articleId
     */
    void addView(Integer articleId);

    /**
     * 根据articleID 新增或更新categoryId
     * @param articleId
     * @param categoryId
     */
    void saveOrUpdateByArticleId(Integer articleId, Integer categoryId);
}
